package com.example.data;

import com.example.utils.DefaultHttpInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

/**
 * Created by yangbajing(yangbajing@gmail.com) on 2016-08-24.
 */
@Configuration
public class WebConfiguration extends WebMvcConfigurerAdapter {

//    @Bean
//    public DefaultHttpInterceptor defaultHttpInterceptor() {
//        return new DefaultHttpInterceptor();
//    }
//
//    @Override
//    public void addInterceptors(InterceptorRegistry registry) {
//        registry.addInterceptor(defaultHttpInterceptor())
//                .addPathPatterns("/demo/**");
//    }


}
